package com.ithei.date.mydate;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class 计算年龄 {
    public static void main(String[] args) throws ParseException {
        Scanner sc=new Scanner(System.in);
        String s = sc.nextLine();
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
        Date parse = sdf.parse(s);
        Date date=new Date();
        long l=date.getTime()-parse.getTime();
        long ld=l/3600L/1000/24/30/12;
        int year=(int)ld;
        System.out.println("多少岁:    "+year);

    }
}
